import Components from 'unplugin-vue-components/vite'
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'

export default function createComponents() {
  return Components({
    // dirs配置需要默认导入的自定义组件文件夹，该文件夹下的所有组件都会自动 import
    dirs: ['src/components'],
    resolvers: [ElementPlusResolver()]
  })
}
